#include "./skyPainter.h"
namespace Sky
{
	
	TRect* Painter::getClipArea()
	{
		return &mClipRect;
	}

	TVoid Painter::setClipArea( TUint x,TUint y,TUint w,TUint h )
	{
		return mClipRect.set(x,y,w,h);
	}

	TVoid	Painter::setClipArea(TRect* rect)
	{
		return mClipRect.set(rect->x,rect->y,rect->w,rect->h);
	}

	TRect* Painter::getInvalidArea()
	{
		return &mInvalidRect;
	}

	TVoid Painter::setInvalidArea( TUint x,TUint y,TUint w,TUint h )
	{
		return mInvalidRect.set(x,y,w,h);
	}

	TVoid	Painter::setInvalidArea(TRect* rect)
	{
		return mInvalidRect.set(rect->x,rect->y,rect->w,rect->h);
	}

	

}